package com.zpark.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zpark.mapper.EquimentMapper;
import com.zpark.pojo.Equipment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangbing
 * @date
 * @description TODO
 */
@Service
public class EquipmentServiceImpl extends ServiceImpl<EquimentMapper,Equipment> implements EquipmentService{

    @Autowired
    private EquimentMapper equimentMapper;

    @Override
    public Equipment findById(int id) {
        return equimentMapper.selectById(id);
    }

    @Override
    public List<Equipment> findAll() {
        QueryWrapper queryWrapper = new QueryWrapper();
        List selectList = equimentMapper.selectList(queryWrapper);
        return selectList;
    }


}
